<!DOCTYPE html>
<html>
<head>
  <style>
  span { color:red; }
  </style>
  <script src="jquery.min.js"></script>
</head>
<body>
  Reversed - <span></span>

  <div>One</div>
  <div>Two</div>
  <div>Three</div>
<script>

    function disp(divs) {
      var a = [];
      for (var i = 0; i < divs.length; i++) {
        a.push(divs[i].innerHTML);
      }
      $("span").text(a.join(" "));
    }
    
    disp( $("div").get() );
</script>

</body>
</html>
